#include "MsgHandle.h"

wxDEFINE_EVENT(EVT_DEVICEMSGE, DeviceMsgEvent);


MsgHandle::MsgHandle(wxEvtHandler* handler, int _ID) : EvtHandler(handler), ID(_ID)
{

}

void MsgHandle::operator()(CameraMessageType msgType, int value)
{
	EvtHandler->QueueEvent(new DeviceMsgEvent(EVT_DEVICEMSGE, wxID_ANY, ID, msgType, value));
}